package Demo08.Demo0822;

public class Homework {
    public static void main(String[] args) {
        double a = 3.4;
        double b = 5.1;
        double e = 3.4;
        int c = 6;
        int d= 8;
       /* System.out.println(max(a,b));
        System.out.println(max(c,d));
        System.out.println(max(a,b,c));*/
        System.out.println(add(a,b,c));
        System.out.println(add(c,d));
    }

    public static int max(int a,int b ){
        return a > b ? a : b;
    }
    public static double max(double a,double b ){
        return a > b ? a : b;
    }
    public static double max(double a,double b, int c ){
        return max(a,b) > c ? max(a,b) : c;
    }
    public static int add(int a,int b){
        return a+b;
    }
    public static double add(double a,double b,double c){
        return a+b+c;
    }

}
